/**
 *  @file TableRenderer.java
 *  @author Mamontov
 *
 *  This file contains TableRenderer class definition
 */

import java.awt.Component;
import javax.swing.JLabel;
import javax.swing.JTable;
import javax.swing.table.TableCellRenderer;
import java.awt.Font;
/**
 * @class  TableRenderer
 * @author Mamontov
 *
 *
 */
public class TableRenderer  implements  TableCellRenderer {

    public Component getTableCellRendererComponent(JTable table, Object value, boolean isSelected, boolean hasFocus, int row, int column) {
        JLabel label = new JLabel((String)value); 
        if (row==0) {
            label.setFont(label.getFont().deriveFont(Font.BOLD,(float)18.0));
        }
        return label;
    }
    
}
